package cn.itlaobing.model2;

public class School {
	private Integer id;
	private String name;
	private String address;
	private Student student;
	public School() {
	}
	
	public School(Student student) {
		super();
		this.student = student;
	}

	public School(Integer id, String name, String address, Student student) {
		this.id = id;
		this.name = name;
		this.address = address;
		this.student = student;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	@Override
	public String toString() {
		return "School [id=" + id + ", name=" + name + ", address=" + address + ", student=" + student + "]";
	}
	
	
}
